home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / finderdragpro / finderdragpro.r < prev    next >
Encoding:
Text File  |  2000-06-23  |  2.0 KB  |  94 lines

  1. /*
  2.     File:        FinderDragPro.r
  3.     
  4.     Description:     Sample file illustrating drag and drop techniques for use
  5.                 with file system objects.  This file illustrates how applications
  6.                 can use drag and drop commands in a way compatible with current
  7.                 and past versions of the Finder.
  8.  
  9.     Author:        John Montbriand
  10.  
  11.     Copyright:     Copyright: © 1999 by Apple Computer, Inc.
  12.                 all rights reserved.
  13.     
  14.     Disclaimer:    You may incorporate this sample code into your applications without
  15.                 restriction, though the sample code has been provided "AS IS" and the
  16.                 responsibility for its operation is 100% yours.  However, what you are
  17.                 not permitted to do is to redistribute the source as "DSC Sample Code"
  18.                 after having made changes. If you're going to re-distribute the source,
  19.                 we require that you make it clear in the source that the code was
  20.                 descended from Apple Sample Code, but that you've made changes.
  21.     
  22.     Change History (most recent first):
  23.     9/9/99 reworked and updated to most recent interfaces by John Montbriand
  24. */
  25.  
  26. #include "Processes.r"
  27. #include "CodeFragments.r"
  28. #include "Dialogs.r"
  29. #include "Controls.r"
  30.  
  31. include "FinderDragPro.rsrc";
  32.  
  33. resource 'SIZE' (-1, purgeable)  {
  34.     reserved,
  35.     acceptSuspendResumeEvents,
  36.     reserved,
  37.     canBackground,
  38.     doesActivateOnFGSwitch,
  39.     backgroundAndForeground,
  40.     getFrontClicks,
  41.     ignoreAppDiedEvents,
  42.     is32BitCompatible,
  43.     isHighLevelEventAware,
  44.     localAndRemoteHLEvents,
  45.     isStationeryAware,
  46.     dontUseTextEditServices,
  47.     reserved,
  48.     reserved,
  49.     reserved,
  50.     1024 * 300,
  51.     1024 * 300
  52. };
  53.  
  54. resource 'cfrg' (0) {
  55.     {    kPowerPC,
  56.         kFullLib,
  57.         kNoVersionNum,
  58.         kNoVersionNum,
  59.         kDefaultStackSize,
  60.         kNoAppSubFolder,
  61.         kIsApp,
  62.         kOnDiskFlat,
  63.         kZeroOffset,
  64.         kWholeFork,
  65.         "FinderDragPro"
  66.     }
  67. };
  68.  
  69. resource 'dlgx' (128) {
  70.     versionZero {
  71.         kDialogFlagsUseThemeBackground | kDialogFlagsUseThemeControls
  72.     }
  73. };
  74.  
  75. resource 'dlgx' (130) {
  76.     versionZero {
  77.         kDialogFlagsUseThemeBackground | kDialogFlagsUseThemeControls
  78.     }
  79. };
  80.  
  81. /*
  82. resource 'CNTL' (130) {
  83.     { 66, 19, 83, 196 },
  84.     0,
  85.     visible,
  86.     100,
  87.     0,
  88.     kControlProgressBarProc,
  89.     0,
  90.     "file copy progress"
  91. };
  92.  
  93. */
  94.